<?php
class Plugin_AccessPlugin extends Zend_Controller_Plugin_Abstract
{
	
	public function preDispatch( Zend_Controller_Request_Abstract $request )
	{
        if ( !Zend_Auth::getInstance()->hasIdentity() ) {

            $request->setModuleName('');

			$request->setControllerName('login');

			$request->setActionName('login');

        }
		
	}
	
}